<?php

/***************************************************************\
* FILE:		sys/pages/colors.inc
* SECTION:	pages > prefs management
* FUNCTION:	
* USES:	
* INCLUDES:		
* PRODUCES:	
* LAUNCHES:	
\***************************************************************/


/**
 * adds extra access checks, dependent on page state
 */
function page_inc_check_access() {
	check_access("VIEW");
	if (!$_SESSION['user_id'])
		errorpage(6);
}

function page_inc_execute_action($action) {
	global $PAGE, $CONFIG;

	switch($action) {
		default:
			add_alert("unknown action: $action");
			break;
	}
}

/**
 * execute page logic
 */
function page_inc_execute() {
	global $PAGE, $CONFIG;
	
	if (!$_SESSION['member']['skin_id'])
		$_SESSION['member']['skin_id'] = $CONFIG['default_skin'];

	$sqlresult = db_do_query(db_query_select(array(array("*")), array("SKIN_COLOR"), "skin_id = '{$_SESSION['member']['skin_id']}'"));
	$colors = array();
	while ($c = db_fetch_array($sqlresult))
		$colors[] = $c;

	if (!count($colors))
		endpage("voor deze skin zijn er voorlopig nog geen kleur-instelmogelijkheden...");

	if ($_POST['submitted']) {
		
		include_once('sys/inputcheck.inc');
		
		$ok = 1;
		
		
		if ($ok) {
			$riplist = "-1";
			$newcs = array();
			for ($i = 0; $i < count($colors); $i++)
				if ($_POST["reset_color_{$colors[$i]['skin_color_id']}"]) {
					$riplist .= ", {$colors[$i]['skin_color_id']}";
				} else if ($_POST["color_{$colors[$i]['skin_color_id']}"]) {
					$riplist .= ", {$colors[$i]['skin_color_id']}";
					$newcs[] = array($_SESSION['user_id'], db_sqlize($_SESSION['member']['skin_id']), $colors[$i]['skin_color_id'], db_sqlize($_POST["color_{$colors[$i]['skin_color_id']}"]));
				}
			db_do_query(db_query_delete("PREFS_COLOR", "user_id = {$_SESSION['user_id']} AND skin_color_id IN ($riplist)"));
			if (count($newcs))
				db_do_query(db_query_insert_multiple(array('user_id', 'skin_id', 'skin_color_id', 'color'), $newcs, "PREFS_COLOR"));
			
			loadcolors();
			
			endpage("OK, je kleurenschema is aangepast");
		}
	}
	
	$inputs = array();

	$usercolors = array();
	for ($i = 0; $i < count($_SESSION['member']['colors']); $i++) {
		$uc = $_SESSION['member']['colors'][$i];
		$usercolors[$uc['skin_color_id']] = $uc['color'];
	}
	
	for ($i = 1; $i <= count($colors); $i++) {
		$inputs[] = form_header("Kleur #$i");
		$inputs[] = form_info($colors[$i-1]['description']);
		$inputs[] = form_input_field("Nieuwe kleur", "color_{$colors[$i-1]['skin_color_id']}", $usercolors[$colors[$i-1]['skin_color_id']], 6, 6);
		if ($usercolors[$colors[$i-1]['skin_color_id']]['color'])
			$inputs[] = form_input_checkbox("Standaard herstellen voor deze kleur", "reset_color_{$colors[$i-1]['skin_color_id']}");
	}
	
	$PAGE['content']['form'] = form_create("colorform", array_reverse($inputs));

	$PAGE['content']['body'] = "<h4>Info</h4>\n<p>Voor het instellen van je kleuren op mandragon moet je gebruik maken van RGB-codes. Dit zijn de standaardweergave's voor kleuren op het web. ze bestaan uit drie opeenvolgende getallen van twee 'cijfers' die respectievelijk de hoeveelheid rood, groen en blauw weergeven. de 'cijfers' zijn hexadecimaal, wat wil zeggen dat ze 'tot 16 tellen'. na 9 komen daarom nog wat cijfers om rond te komen, meer bepaald van a tot f. een felrode kleur heet dus bvb ee0000, gifgeel word ffff00 en grijstinten bekom je door elke kleur evenveel aan bod te laten komen: e5e5e5.
<p>om het kiezen wat makkelijker te maken is hier een kleurentabelletje waaruit je evt kan kiezen (klikken en de RGB-code verschijnt onderaan, of de RGB-code zelf intikken en op proberen klikken):
<center>
 <form name=colors>
  <table border=0 cellspacing=3><tr><td>
  <img src='/gfx/kleureu.gif' border='0' usemap='#map_color' ismap>
  </td></tr><tr><td align=center>
  RGB-code: <input type=text size=8 maxlength=6 name=color>
  </td></tr><tr><td align=center>
  <input type=button onClick=javascript:tryColor('txt') value='probeer tekst'> <input type=button onClick=javascript:tryColor('bgr') value='probeer achtergrond'>
  </td></tr><tr><td align=center>
  <table border=0 width=100 height=16 id=bgr><tr><td align=center><font id=txt>dit is tekst</font></td></tr></table>
  </td></tr></table>
 </form>
</center>

<script language=JavaScript>
function setColor(c) {
  document.colors.color.value = c; }
function tryColor(id) {
  switch(id) {
    case 'txt': document.getElementById('txt').style.color = document.colors.color.value; break;
    case 'bgr': document.getElementById('bgr').style.backgroundColor = document.colors.color.value; break; } }
</script>

<MAP NAME='map_color'>
<!--- Row 1 --->
<AREA COORDS='2,2,18,18' href='javascript:setColor(\"330000\")'>   
<AREA COORDS='18,2,34,18' href='javascript:setColor(\"333300\")'>   
<AREA COORDS='34,2,50,18' href='javascript:setColor(\"336600\")'>   
<AREA COORDS='50,2,66,18' href='javascript:setColor(\"339900\")'>   
<AREA COORDS='66,2,82,18' href='javascript:setColor(\"33CC00\")'>   
<AREA COORDS='82,2,98,18' href='javascript:setColor(\"33FF00\")'>   
<AREA COORDS='98,2,114,18' href='javascript:setColor(\"66FF00\")'>   
<AREA COORDS='114,2,130,18' href='javascript:setColor(\"66CC00\")'>   
<AREA COORDS='130,2,146,18' href='javascript:setColor(\"669900\")'>   
<AREA COORDS='146,2,162,18' href='javascript:setColor(\"666600\")'>   
<AREA COORDS='162,2,178,18' href='javascript:setColor(\"663300\")'>   
<AREA COORDS='178,2,194,18' href='javascript:setColor(\"660000\")'>   
<AREA COORDS='194,2,210,18' href='javascript:setColor(\"FF0000\")'>   
<AREA COORDS='210,2,226,18' href='javascript:setColor(\"FF3300\")'>   
<AREA COORDS='226,2,242,18' href='javascript:setColor(\"FF6600\")'>   
<AREA COORDS='242,2,258,18' href='javascript:setColor(\"FF9900\")'>   
<AREA COORDS='258,2,274,18' href='javascript:setColor(\"FFCC00\")'>   
<AREA COORDS='274,2,290,18' href='javascript:setColor(\"FFFF00\")'> 
<!--- Row 2 --->
<AREA COORDS='2,18,18,34' href='javascript:setColor(\"330033\")'>   
<AREA COORDS='18,18,34,34' href='javascript:setColor(\"333333\")'>   
<AREA COORDS='34,18,50,34' href='javascript:setColor(\"336633\")'>   
<AREA COORDS='50,18,66,34' href='javascript:setColor(\"339933\")'>   
<AREA COORDS='66,18,82,34' href='javascript:setColor(\"33CC33\")'>   
<AREA COORDS='82,18,98,34' href='javascript:setColor(\"33FF33\")'>   
<AREA COORDS='98,18,114,34' href='javascript:setColor(\"66FF33\")'>   
<AREA COORDS='114,18,130,34' href='javascript:setColor(\"66CC33\")'>   
<AREA COORDS='130,18,146,34' href='javascript:setColor(\"669933\")'>   
<AREA COORDS='146,18,162,34' href='javascript:setColor(\"666633\")'>   
<AREA COORDS='162,18,178,34' href='javascript:setColor(\"663333\")'>   
<AREA COORDS='178,18,194,34' href='javascript:setColor(\"660033\")'>   
<AREA COORDS='194,18,210,34' href='javascript:setColor(\"FF0033\")'>   
<AREA COORDS='210,18,226,34' href='javascript:setColor(\"FF3333\")'>   
<AREA COORDS='226,18,242,34' href='javascript:setColor(\"FF6633\")'>   
<AREA COORDS='242,18,258,34' href='javascript:setColor(\"FF9933\")'>   
<AREA COORDS='258,18,274,34' href='javascript:setColor(\"FFCC33\")'>   
<AREA COORDS='274,18,290,34' href='javascript:setColor(\"FFFF33\")'> 
<!--- Row 3 --->
<AREA COORDS='2,34,18,50' href='javascript:setColor(\"330066\")'>
<AREA COORDS='18,34,34,50' href='javascript:setColor(\"333366\")'> 
<AREA COORDS='34,34,50,50' href='javascript:setColor(\"336666\")'> 
<AREA COORDS='50,34,66,50' href='javascript:setColor(\"339966\")'> 
<AREA COORDS='66,34,82,50' href='javascript:setColor(\"33CC66\")'> 
<AREA COORDS='82,34,98,50' href='javascript:setColor(\"33FF66\")'> 
<AREA COORDS='98,34,114,50' href='javascript:setColor(\"66FF66\")'> 
<AREA COORDS='114,34,130,50' href='javascript:setColor(\"66CC66\")'> 
<AREA COORDS='130,34,146,50' href='javascript:setColor(\"669966\")'> 
<AREA COORDS='146,34,162,50' href='javascript:setColor(\"666666\")'> 
<AREA COORDS='162,34,178,50' href='javascript:setColor(\"663366\")'> 
<AREA COORDS='178,34,194,50' href='javascript:setColor(\"660066\")'> 
<AREA COORDS='194,34,210,50' href='javascript:setColor(\"FF0066\")'> 
<AREA COORDS='210,34,226,50' href='javascript:setColor(\"FF3366\")'> 
<AREA COORDS='226,34,242,50' href='javascript:setColor(\"FF6666\")'> 
<AREA COORDS='242,34,258,50' href='javascript:setColor(\"FF9966\")'> 
<AREA COORDS='258,34,274,50' href='javascript:setColor(\"FFCC66\")'> 
<AREA COORDS='274,34,290,50' href='javascript:setColor(\"FFFF66\")'> 
<!--- Row 4 --->
<AREA COORDS='2,50,18,66' href='javascript:setColor(\"330099\")'> 
<AREA COORDS='18,50,34,66' href='javascript:setColor(\"333399\")'> 
<AREA COORDS='34,50,50,66' href='javascript:setColor(\"336699\")'> 
<AREA COORDS='50,50,66,66' href='javascript:setColor(\"339999\")'> 
<AREA COORDS='66,50,82,66' href='javascript:setColor(\"33CC99\")'> 
<AREA COORDS='82,50,98,66' href='javascript:setColor(\"33FF99\")'> 
<AREA COORDS='98,50,114,66' href='javascript:setColor(\"66FF99\")'> 
<AREA COORDS='114,50,130,66' href='javascript:setColor(\"66CC99\")'> 
<AREA COORDS='130,50,146,66' href='javascript:setColor(\"669999\")'> 
<AREA COORDS='146,50,162,66' href='javascript:setColor(\"666699\")'> 
<AREA COORDS='162,50,178,66' href='javascript:setColor(\"663399\")'>
<AREA COORDS='178,50,194,66' href='javascript:setColor(\"660099\")'> 
<AREA COORDS='194,50,210,66' href='javascript:setColor(\"FF0099\")'> 
<AREA COORDS='210,50,226,66' href='javascript:setColor(\"FF3399\")'> 
<AREA COORDS='226,50,242,66' href='javascript:setColor(\"FF6699\")'> 
<AREA COORDS='242,50,258,66' href='javascript:setColor(\"FF9999\")'> 
<AREA COORDS='258,50,274,66' href='javascript:setColor(\"FFCC99\")'> 
<AREA COORDS='274,50,290,66' href='javascript:setColor(\"FFFF99\")'> 
<!--- Row 5 --->
<AREA COORDS='2,66,18,82' href='javascript:setColor(\"3300CC\")'> 
<AREA COORDS='18,66,34,82' href='javascript:setColor(\"3333CC\")'> 
<AREA COORDS='34,66,50,82' href='javascript:setColor(\"3366CC\")'> 
<AREA COORDS='50,66,66,82' href='javascript:setColor(\"3399CC\")'> 
<AREA COORDS='66,66,82,82' href='javascript:setColor(\"33CCCC\")'> 
<AREA COORDS='82,66,98,82' href='javascript:setColor(\"33FFCC\")'> 
<AREA COORDS='98,66,114,82' href='javascript:setColor(\"66FFCC\")'> 
<AREA COORDS='114,66,130,82' href='javascript:setColor(\"66CCCC\")'> 
<AREA COORDS='130,66,146,82' href='javascript:setColor(\"6699CC\")'> 
<AREA COORDS='146,66,162,82' href='javascript:setColor(\"6666CC\")'> 
<AREA COORDS='162,66,178,82' href='javascript:setColor(\"6633CC\")'> 
<AREA COORDS='178,66,194,82' href='javascript:setColor(\"6600CC\")'> 
<AREA COORDS='194,66,210,82' href='javascript:setColor(\"FF00CC\")'> 
<AREA COORDS='210,66,226,82' href='javascript:setColor(\"FF33CC\")'> 
<AREA COORDS='226,66,242,82' href='javascript:setColor(\"FF66CC\")'> 
<AREA COORDS='242,66,258,82' href='javascript:setColor(\"FF99CC\")'> 
<AREA COORDS='258,66,274,82' href='javascript:setColor(\"FFCCCC\")'> 
<AREA COORDS='274,66,290,82' href='javascript:setColor(\"FFFFCC\")'> 
<!--- Row 6 --->
<AREA COORDS='2,82,18,98' href='javascript:setColor(\"3300FF\")'> 
<AREA COORDS='18,82,34,98' href='javascript:setColor(\"3333FF\")'> 
<AREA COORDS='34,82,50,98' href='javascript:setColor(\"3366FF\")'> 
<AREA COORDS='50,82,66,98' href='javascript:setColor(\"3399FF\")'> 
<AREA COORDS='66,82,82,98' href='javascript:setColor(\"33CCFF\")'> 
<AREA COORDS='82,82,98,98' href='javascript:setColor(\"33FFFF\")'> 
<AREA COORDS='98,82,114,98' href='javascript:setColor(\"66FFFF\")'> 
<AREA COORDS='114,82,130,98' href='javascript:setColor(\"66CCFF\")'> 
<AREA COORDS='130,82,146,98' href='javascript:setColor(\"6699FF\")'> 
<AREA COORDS='146,82,162,98' href='javascript:setColor(\"6666FF\")'> 
<AREA COORDS='162,82,178,98' href='javascript:setColor(\"6633FF\")'> 
<AREA COORDS='178,82,194,98' href='javascript:setColor(\"6600FF\")'> 
<AREA COORDS='194,82,210,98' href='javascript:setColor(\"FF00FF\")'> 
<AREA COORDS='210,82,226,98' href='javascript:setColor(\"FF33FF\")'> 
<AREA COORDS='226,82,242,98' href='javascript:setColor(\"FF66FF\")'> 
<AREA COORDS='242,82,258,98' href='javascript:setColor(\"FF99FF\")'> 
<AREA COORDS='258,82,274,98' href='javascript:setColor(\"FFCCFF\")'> 
<AREA COORDS='274,82,290,98' href='javascript:setColor(\"FFFFFF\")'> 
<!--- Row 7 --->
<AREA COORDS='2,98,18,114' href='javascript:setColor(\"0000FF\")'> 
<AREA COORDS='18,98,34,114' href='javascript:setColor(\"0033FF\")'> 
<AREA COORDS='34,98,50,114' href='javascript:setColor(\"0066FF\")'> 
<AREA COORDS='50,98,66,114' href='javascript:setColor(\"0099FF\")'> 
<AREA COORDS='66,98,82,114' href='javascript:setColor(\"00CCFF\")'> 
<AREA COORDS='82,98,98,114' href='javascript:setColor(\"00FFFF\")'> 
<AREA COORDS='98,98,114,114' href='javascript:setColor(\"99FFFF\")'> 
<AREA COORDS='114,98,130,114' href='javascript:setColor(\"99CCFF\")'> 
<AREA COORDS='130,98,146,114' href='javascript:setColor(\"9999FF\")'> 
<AREA COORDS='146,98,162,114' href='javascript:setColor(\"9966FF\")'> 
<AREA COORDS='162,98,178,114' href='javascript:setColor(\"9933FF\")'> 
<AREA COORDS='178,98,194,114' href='javascript:setColor(\"9900FF\")'> 
<AREA COORDS='194,98,210,114' href='javascript:setColor(\"CC00FF\")'> 
<AREA COORDS='210,98,226,114' href='javascript:setColor(\"CC33FF\")'> 
<AREA COORDS='226,98,242,114' href='javascript:setColor(\"CC66FF\")'> 
<AREA COORDS='242,98,258,114' href='javascript:setColor(\"CC99FF\")'> 
<AREA COORDS='258,98,274,114' href='javascript:setColor(\"CCCCFF\")'> 
<AREA COORDS='274,98,290,114' href='javascript:setColor(\"CCFFFF\")'> 
<!--- Row 8 --->
<AREA COORDS='2,114,18,130' href='javascript:setColor(\"0000CC\")'> 
<AREA COORDS='18,114,34,130' href='javascript:setColor(\"0033CC\")'> 
<AREA COORDS='34,114,50,130' href='javascript:setColor(\"0066CC\")'> 
<AREA COORDS='50,114,66,130' href='javascript:setColor(\"0099CC\")'> 
<AREA COORDS='66,114,82,130' href='javascript:setColor(\"00CCCC\")'> 
<AREA COORDS='82,114,98,130' href='javascript:setColor(\"00FFCC\")'> 
<AREA COORDS='98,114,114,130' href='javascript:setColor(\"99FFCC\")'> 
<AREA COORDS='114,114,130,130' href='javascript:setColor(\"99CCCC\")'> 
<AREA COORDS='130,114,146,130' href='javascript:setColor(\"9999CC\")'> 
<AREA COORDS='146,114,162,130' href='javascript:setColor(\"9966CC\")'> 
<AREA COORDS='162,114,178,130' href='javascript:setColor(\"9933CC\")'> 
<AREA COORDS='178,114,194,130' href='javascript:setColor(\"9900CC\")'> 
<AREA COORDS='194,114,210,130' href='javascript:setColor(\"CC00CC\")'> 
<AREA COORDS='210,114,226,130' href='javascript:setColor(\"CC33CC\")'> 
<AREA COORDS='226,114,242,130' href='javascript:setColor(\"CC66CC\")'> 
<AREA COORDS='242,114,258,130' href='javascript:setColor(\"CC99CC\")'> 
<AREA COORDS='258,114,274,130' href='javascript:setColor(\"CCCCCC\")'> 
<AREA COORDS='274,114,290,130' href='javascript:setColor(\"CCFFCC\")'> 
<!--- Row 9 --->
<AREA COORDS='2,130,18,146' href='javascript:setColor(\"000099\")'> 
<AREA COORDS='18,130,34,146' href='javascript:setColor(\"003399\")'> 
<AREA COORDS='34,130,50,146' href='javascript:setColor(\"006699\")'> 
<AREA COORDS='50,130,66,146' href='javascript:setColor(\"009999\")'> 
<AREA COORDS='66,130,82,146' href='javascript:setColor(\"00CC99\")'> 
<AREA COORDS='82,130,98,146' href='javascript:setColor(\"00FF99\")'> 
<AREA COORDS='98,130,114,146' href='javascript:setColor(\"99FF99\")'> 
<AREA COORDS='114,130,130,146' href='javascript:setColor(\"99CC99\")'> 
<AREA COORDS='130,130,146,146' href='javascript:setColor(\"999999\")'> 
<AREA COORDS='146,130,162,146' href='javascript:setColor(\"996699\")'> 
<AREA COORDS='162,130,178,146' href='javascript:setColor(\"993399\")'> 
<AREA COORDS='178,130,194,146' href='javascript:setColor(\"990099\")'> 
<AREA COORDS='194,130,210,146' href='javascript:setColor(\"CC0099\")'> 
<AREA COORDS='210,130,226,146' href='javascript:setColor(\"CC3399\")'> 
<AREA COORDS='226,130,242,146' href='javascript:setColor(\"CC6699\")'> 
<AREA COORDS='242,130,258,146' href='javascript:setColor(\"CC9999\")'> 
<AREA COORDS='258,130,274,146' href='javascript:setColor(\"CCCC99\")'> 
<AREA COORDS='274,130,290,146' href='javascript:setColor(\"CCFF99\")'> 
<!--- Row 10 --->
<AREA COORDS='2,146,18,162' href='javascript:setColor(\"000066\")'> 
<AREA COORDS='18,146,34,162' href='javascript:setColor(\"003366\")'> 
<AREA COORDS='34,146,50,162' href='javascript:setColor(\"006666\")'> 
<AREA COORDS='50,146,66,162' href='javascript:setColor(\"009966\")'> 
<AREA COORDS='66,146,82,162' href='javascript:setColor(\"00CC66\")'> 
<AREA COORDS='82,146,98,162' href='javascript:setColor(\"00FF66\")'> 
<AREA COORDS='98,146,114,162' href='javascript:setColor(\"99FF66\")'> 
<AREA COORDS='114,146,130,162' href='javascript:setColor(\"99CC66\")'> 
<AREA COORDS='130,146,146,162' href='javascript:setColor(\"999966\")'> 
<AREA COORDS='146,146,162,162' href='javascript:setColor(\"996666\")'> 
<AREA COORDS='162,146,178,162' href='javascript:setColor(\"993366\")'> 
<AREA COORDS='178,146,194,162' href='javascript:setColor(\"990066\")'> 
<AREA COORDS='194,146,210,162' href='javascript:setColor(\"CC0066\")'> 
<AREA COORDS='210,146,226,162' href='javascript:setColor(\"CC3366\")'> 
<AREA COORDS='226,146,242,162' href='javascript:setColor(\"CC6666\")'> 
<AREA COORDS='242,146,258,162' href='javascript:setColor(\"CC9966\")'> 
<AREA COORDS='258,146,274,162' href='javascript:setColor(\"CCCC66\")'> 
<AREA COORDS='274,146,290,162' href='javascript:setColor(\"CCFF66\")'> 
<!--- Row 11 --->
<AREA COORDS='2,162,18,178' href='javascript:setColor(\"000033\")'> 
<AREA COORDS='18,162,34,178' href='javascript:setColor(\"003333\")'> 
<AREA COORDS='34,162,50,178' href='javascript:setColor(\"006633\")'> 
<AREA COORDS='50,162,66,178' href='javascript:setColor(\"009933\")'> 
<AREA COORDS='66,162,82,178' href='javascript:setColor(\"00CC33\")'> 
<AREA COORDS='82,162,98,178' href='javascript:setColor(\"00FF33\")'> 
<AREA COORDS='98,162,114,178' href='javascript:setColor(\"99FF33\")'> 
<AREA COORDS='114,162,130,178' href='javascript:setColor(\"99CC33\")'> 
<AREA COORDS='130,162,146,178' href='javascript:setColor(\"999933\")'> 
<AREA COORDS='146,162,162,178' href='javascript:setColor(\"996633\")'> 
<AREA COORDS='162,162,178,178' href='javascript:setColor(\"993333\")'> 
<AREA COORDS='178,162,194,178' href='javascript:setColor(\"990033\")'> 
<AREA COORDS='194,162,210,178' href='javascript:setColor(\"CC0033\")'> 
<AREA COORDS='210,162,226,178' href='javascript:setColor(\"CC3333\")'> 
<AREA COORDS='226,162,242,178' href='javascript:setColor(\"CC6633\")'> 
<AREA COORDS='242,162,258,178' href='javascript:setColor(\"CC9933\")'> 
<AREA COORDS='258,162,274,178' href='javascript:setColor(\"CCCC33\")'> 
<AREA COORDS='274,162,290,178' href='javascript:setColor(\"CCFF33\")'> 
<!--- Row 12 --->
<AREA COORDS='2,178,18,194' href='javascript:setColor(\"000000\")'> 
<AREA COORDS='18,178,34,194' href='javascript:setColor(\"003300\")'> 
<AREA COORDS='34,178,50,194' href='javascript:setColor(\"006600\")'> 
<AREA COORDS='50,178,66,194' href='javascript:setColor(\"009900\")'> 
<AREA COORDS='66,178,82,194' href='javascript:setColor(\"00CC00\")'> 
<AREA COORDS='82,178,98,194' href='javascript:setColor(\"00FF00\")'> 
<AREA COORDS='98,178,114,194' href='javascript:setColor(\"99FF00\")'> 
<AREA COORDS='114,178,130,194' href='javascript:setColor(\"99CC00\")'> 
<AREA COORDS='130,178,146,194' href='javascript:setColor(\"999900\")'> 
<AREA COORDS='146,178,162,194' href='javascript:setColor(\"996600\")'> 
<AREA COORDS='162,178,178,194' href='javascript:setColor(\"993300\")'> 
<AREA COORDS='178,178,194,194' href='javascript:setColor(\"990000\")'> 
<AREA COORDS='194,178,210,194' href='javascript:setColor(\"CC0000\")'> 
<AREA COORDS='210,178,226,194' href='javascript:setColor(\"CC3300\")'> 
<AREA COORDS='226,178,242,194' href='javascript:setColor(\"CC6600\")'> 
<AREA COORDS='242,178,258,194' href='javascript:setColor(\"CC9900\")'> 
<AREA COORDS='258,178,274,194' href='javascript:setColor(\"CCCC00\")'> 
<AREA COORDS='274,178,290,194' href='javascript:setColor(\"CCFF00\")'> 
</MAP>
<h4>Instellen</h4>\n";

	$PAGE['content']['title'] = "Kleurenschema wijzigen";
}


/**
 * dress up page content using skin stuff
 */
function page_inc_dress() {
	global $PAGE;
	print_body($PAGE['content']['body']);
	print_form($PAGE['content']['form']);
}

?>
